package com.jie.server.mvc.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 群表
 * </p>
 * 需要注意groups不是group是因为关键字冲突了
 * @author XieZhiJie
 * @since 2022-04-24
 */
@Getter
@Setter
@TableName("group_table")
public class Group implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 群id
     */
    @TableId(value = "group_id", type = IdType.AUTO)
    private Integer groupId;

    /**
     * 群名
     */
    @TableField("group_name")
    private String groupName;

    /**
     * 建群时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

}
